module.exports = (app) => {
    const store = {};
    app.sessionStore = {
        async get(key) {
            return store[key];
        },
        async set(key, value, maxAge) {
            store[key] = value;
        },
        async destroy(key) {
            store[key] = null;
        },
    };
    app.config.coreMiddleware.push("notFind");
    app.config.coreMiddleware.push("auth");
};
